package org.example.platform.design.zhuangtai;


/**
 * 状态模式
 */
public class Test {


    public static void main(String[] args) {
//        WriteProject writeProject = new WriteProject();
//        writeProject.hour=9;
//        writeProject.writePro();
//        writeProject.hour=10;
//        writeProject.writePro();
//        writeProject.hour=12;
//        writeProject.writePro();
//        writeProject.hour=14;
//        writeProject.writePro();
//        writeProject.writePro();
//        writeProject.hour=21;
//
//        writeProject.workFinished =true;
//        writeProject.writePro();
//
//        writeProject.hour=16;
//
//        writeProject.workFinished =false;
//        writeProject.writePro();
//        writeProject.hour=22;
//        writeProject.writePro();



        Player player = new Player();
        player.move();
        player.stop();




    }
}
